
export const LS_TOKEN ='token';
export const LS_USERINFO ='userinfo';
export const LS_CURRENT_TENANT ='current_tenant';

export function getItem(key){
    return localStorage.getItem(key);
}

export function setItem(key,val){
    return localStorage.setItem(key,val);
}

export function removeItem(key){
    return localStorage.removeItem(key);
}

export function clearForLoginOut(){
      localStorage.removeItem(LS_TOKEN);
      localStorage.removeItem(LS_USERINFO);
      localStorage.removeItem(LS_CURRENT_TENANT);
}